package RemotePlay.Server;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;

public class BindRemoteObject {
    public static void main(String[] args) {
        try {
            RemoteConcreteSubject remoteobject = new RemoteConcreteSubject();
            Naming.rebind("rmi://127.0.0.1",remoteobject);
            System.out.println("ready....");
        } catch (RemoteException | MalformedURLException e) {
            e.printStackTrace();
        }

    }
}
